package pers.ree.demo.designpattern.factory.factorymethod;

public abstract class AbstractAnimalStore {

    public abstract Animal createAnimal(String type);

    public Animal buy(String color) {
        Animal animal = createAnimal(color);

        animal.setPrice(1000);

        return animal;
    }
}
